import { Access, useAccess } from '@umijs/max';
import React from 'react'

const Product = () => {
  const access = useAccess();
  return (
    <>
      <div>Products</div>
      <Access accessible={access.canViewAdminPage()}>管理员</Access>
      <Access accessible={!access.canViewAdminPage()}>非管理员</Access>
    </>
  )
}

export default Product;